// FindImageEdgelib.h

#pragma once

using namespace System;

namespace FindImageEdgelib {

	public ref class FindImageEdge
	{
		// TODO: Add your methods for this class here.
	public:
		FindImageEdge(array<byte,2>^ ImageArray,array<byte,2>^ OutImageArray,byte Direction,byte Distance )
		{
			this->m_ImageArray =ImageArray;
			this->m_Direction=Direction;
			this->m_Distance=Distance;
			this->m_Old=255;
			this->m_OutImageArray=OutImageArray;
			
		}
		void Runing();
		

		
	private:
		void Fun(unsigned long i,unsigned long j);
		int ArrayToBitmap(array<byte,2>^ ImageArray);
	private :
		array<byte,2>^ m_ImageArray;
		array<byte,2>^ m_OutImageArray;
		byte m_Direction;
		byte m_Distance;
		byte m_Old;
		unsigned W,H;

	};

	
}


